package com.li.qiqi.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import org.apache.poi.ss.usermodel.IndexedColors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@Accessors(chain = true)
@ContentRowHeight(20)
@HeadRowHeight(60)
@ColumnWidth(10)
public class Record {

    @ExcelIgnore
    private Long id;

    @ExcelIgnore
    @JsonProperty("qDate")
    @JsonFormat( timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date qDate;

    @ExcelProperty(value = {"教师授课考勤表","上课日期"})
    private String excelDate;

    @ExcelProperty({"教师授课考勤表","课程"})
    private String excelType;

    @ExcelIgnore
    @JsonProperty("qType")
    private String qType;

    @ExcelProperty({"教师授课考勤表","开始时间"})
    private String startTime;

    @ExcelProperty({"教师授课考勤表","结束时间"})
    private String endTime;

    @ExcelProperty({"教师授课考勤表","考勤状态"})
    private String status;

    @ExcelProperty({"教师授课考勤表","考勤状态"})
    private String reason;

    @ExcelProperty({"教师授课考勤表","任课教师"})
    private String teaName;

    @ExcelProperty({"教师授课考勤表","是否留作业"})
    private String isHomework;

    @ExcelIgnore
    private String reportMonth;


}